package com.hs.srm.admin.modules.material.service;


import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.material.entity.MaterialFactoryEntity;
import com.hs.srm.admin.modules.material.vo.MaterialVO;
import com.hs.srm.common.utils.PageUtils;

public interface MaterialFactoryService extends IService<MaterialFactoryEntity> {
	
	PageUtils queryPage(Map<String, Object> params);
	
	Page<MaterialVO> selectMaterialVOPage(int pageNo, int pageSize, MaterialVO model);
	/**
	 * @Description: 插入方法
	 */
	boolean insertMaterial(MaterialFactoryEntity entity);
    /**
     * @Description: 根据物料号查询物料工厂信息
     */
	MaterialFactoryEntity  selectMaterialFactoryByCode(String code,String werks);
	/**
	 * @Description: 根据物料号查询所有数据
	 */
	List<MaterialFactoryEntity>  selectMaterialFactoryListByCode(String code);
   /**
    * @Description:  根据物料号删除物料工厂信息
    */
   boolean deleteMaterialFactory(MaterialFactoryEntity entity);
}
